#include"HugeNumberComputing.hpp"

void* mallocloop(int size) {
	void* p = nullptr;
	do {
		p = malloc(size);
	} while (p == nullptr);
	return p;
}

void* reallocloop(void* p, int size) {
	void* tp=nullptr;
	if (p == nullptr) {
		tp = mallocloop(size);
	}
	else {
		do {
			tp = realloc(p, size);
		} while (tp == nullptr);
	}
	return tp;
}


int maxofint(int a, int b) {
	if (a > b) {
		return a;
	}
	else {
		return b;
	}
}
